package main

import "fmt"

func removeDuplicates(nums []int) int {
	for i, k := range nums {
		fmt.Println(i, k)
	}
	nums = nums[:len(nums)-1]
	fmt.Println(nums)
	nums[0] = 5

	return len(nums)
}

func main() {
	a := []int{1, 2, 3, 4, 4}
	removeDuplicates(a)
	fmt.Println(a)
}
